package com.itboye.zhujia.me.key;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import android.widget.ImageView;
import android.widget.TextView;

import com.itboye.zhujia.R;
import com.itboye.zhujia.adapter.key.ItemMyKeyAdapter;
import com.itboye.zhujia.base.BaseActivity;
import com.itboye.zhujia.custom.XListView;
/**
 * 我的钥匙
 *
 */
public class ActivityMyKey extends BaseActivity {
	ImageView close_icon;//返回图片
	TextView add_shap_title_tv;//标题
	
	XListView xlistview;
	
	ItemMyKeyAdapter adapter;
	
	private List<Map<String, Object>> list;

	@Override
	public int initView() {
		return 0;
	}

	@Override
	public void onMyCreate() {
		setContentView(R.layout.activity_my_key);
		
		add_shap_title_tv.setText("我的钥匙");
		
		adapter=new ItemMyKeyAdapter(ActivityMyKey.this, Data());
		xlistview.setAdapter(adapter);

	}
	public List<Map<String, Object>> Data(){
		list=new ArrayList<Map<String,Object>>();
		Map<String,Object> map=new HashMap<String,Object>();
		map.put("img", R.drawable.ic_launcher);
		map.put("name", "LOCK_566");
		map.put("state", "手动开锁");
		map.put("type", "普通用户");
		
		Map<String,Object> map02=new HashMap<String,Object>();
		map02.put("img", R.drawable.ic_launcher);
		map02.put("name", "LOCK_566");
		map02.put("state", "手动开锁");
		map02.put("type", "普通用户");
		list.add(map);
		list.add(map);
		return list;
	}

}
